package com.fowo.api.model.fee.apportion.obj;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.validator.EnumsString;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 费用分摊对象 导入导出辅助模型 */
@Getter
@Setter
public class FeeApportionObjExcelPo {

  @ExcelProperty(value = "所属费用管理")
  private Long parentFeeManageCreateUser;

  @ExcelIgnore
  @ExcelProperty(value = "所属费用管理")
  private Long parentFeeManage;

  @NotNull(message = "店铺不能为空")
  @Size(max = 50, message = "店铺长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*店铺")
  private String shopIdShopName;

  @ExcelIgnore
  @ExcelProperty(value = "*店铺")
  private Long shopId;

  @NotBlank(message = "分摊类型不能为空")
  @EnumsString(
    value = { "按天", "按月" },
    message = "分摊类型的可用值为 “按天”, “按月” 其中之一"
  )
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*分摊类型")
  private String apportionType;

  @NotNull(message = "分摊日期不能为空")
  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "*分摊日期")
  private java.util.Date apportionDate;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "费用类型")
  private String feeType;

  @NotBlank(message = "支收选择不能为空")
  @EnumsString(
    value = { "支出", "收入" },
    message = "支收选择的可用值为 “支出”, “收入” 其中之一"
  )
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*支收选择")
  private String xz;

  @NotNull(message = "原币金额不能为空")
  @ExcelProperty(value = "*原币金额")
  private java.math.BigDecimal originalMoney;

  @NotNull(message = "原币不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*原币")
  private String originalName;

  @ExcelIgnore
  @ExcelProperty(value = "*原币")
  private Long original;

  @ExcelProperty(value = "本位币金额")
  private java.math.BigDecimal standardCoinMoney;

  @Size(max = 50, message = "汇率长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "汇率")
  private String exchangeRate;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remarks;
}
